import request from '@/utils/request'

//  上传图片
export function uploadImageApi(file) {
    const  formData = new FormData();
    formData.append('file', file);
    return request.req(
        {
            url: '/api/file/uploadImage',
            method: 'post',
            data: formData,
            headers: {
                'Content-Type': 'multipart/form-data'
            }
        }
    );
}

